import re

def get_n_slots(input_str):
    # Example input string "2#N6L7781M20"
    # Regular expression pattern
    pattern = r"#N(\d+)"

    # Find all matching numbers
    matches = re.findall(pattern, input_str)

    # Convert the matched number to an integer and return it
    number = int(matches[0])
    return number

def get_lz(input_str):
    # Example input string "2#N6L7781M20"
    # Regular expression pattern
    pattern = r"L(\d+)"

    # Find all matching numbers
    matches = re.findall(pattern, input_str)

    # Convert the matched number to an integer and return it
    number = int(matches[0])*0.001
    return number

def get_m(input_str):
    # Example input string "2#N6L7781M20"
    # Regular expression pattern
    pattern = r"M(\d+)"

    # Find all matching numbers
    matches = re.findall(pattern, input_str)

    # Convert the matched number to an integer and return it
    number = int(matches[0])*0.1
    return number